### -*- coding: utf-8 -*- #############################################
# Разработано Паэглит Арвидом (http://arvid.dp.ua/)
# Все права защищены, 2007
#
# Developed by Paeglit Arvid (http://arvid.dp.ua/)
# All right reserved, 2007
#######################################################################

"""Interfaces of ga

$Id: interfaces.py 74 2008-03-12 11:26:17Z Arvi3D $
"""
__author__  = "Arvid"
__license__ = "GPL"
__version__ = "$Revision: 74 $"
__date__ = "$Date: 2008-03-12 11:26:17 +0000 (Wed, 12 Mar 2008) $"

from zope.interface import Interface, Attribute

gaAnnotationKey = "diplom.ga.genetic.Genetic"

class IChromosomeFactory(Interface):
    """ Interface for chromosome factory class. It Uses within genetic algorithm. """

    n = Attribute(""" Chromosome length """)

    def generate():
        """ generate random and return """

    def eval(chromosome):
        """ Eval function """

    def params(chromosome):
        """get params"""
